package com.topsun.framework;

import com.topsun.framework.common.kafka.producer.DefaultProducer;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@AllArgsConstructor
@RestController
public class TestController {

    private final TestConfig.TestProducer testProducer;

    @GetMapping("send")
    public void send() {
        testProducer.syncSend("123", "123");
    }
}
